package ui.panels.commands;

import ui.flowManager.FlowManagerImpl;



/**
 * 
 * @author vladimir && alon
 *
 */
public class OpenPlayersPanelCommand implements Command{

	private int gameNumber = 0;
	
	/**
	 * 
	 */
	public void execute()
	{
		//check that the game number was set
		if (gameNumber > 0)
		{
			FlowManagerImpl.getInstance().updatePlayersPanel(gameNumber);
		}
	}

	public void setGameNumber(int gameNumber) {
		this.gameNumber = gameNumber;
	}
	
}
